package com.ruoyi.generator.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.generator.mapper.ProjectMonitoringMapper;
import com.ruoyi.generator.entity.ProjectMonitoring;
import com.ruoyi.generator.service.IProjectMonitoringService;

/**
 * 监测预警值数据Service业务层处理
 *
 * @author ruoyi
 * @date 2025-09-15
 */
@Service
public class ProjectMonitoringServiceImpl implements IProjectMonitoringService
{
    @Autowired
    private ProjectMonitoringMapper projectMonitoringMapper;

    /**
     * 查询监测预警值数据
     *
     * @param id 监测预警值数据主键
     * @return 监测预警值数据
     */
    @Override
    public ProjectMonitoring selectProjectMonitoringById(Long id)
    {
        return projectMonitoringMapper.selectProjectMonitoringById(id);
    }

    /**
     * 查询监测预警值数据列表
     *
     * @param projectMonitoring 监测预警值数据
     * @return 监测预警值数据
     */
    @Override
    public List<ProjectMonitoring> selectProjectMonitoringList(ProjectMonitoring projectMonitoring)
    {
        return projectMonitoringMapper.selectProjectMonitoringList(projectMonitoring);
    }

    /**
     * 新增监测预警值数据
     *
     * @param projectMonitoring 监测预警值数据
     * @return 结果
     */
    @Override
    public int insertProjectMonitoring(ProjectMonitoring projectMonitoring)
    {
        return projectMonitoringMapper.insertProjectMonitoring(projectMonitoring);
    }

    /**
     * 修改监测预警值数据
     *
     * @param projectMonitoring 监测预警值数据
     * @return 结果
     */
    @Override
    public int updateProjectMonitoring(ProjectMonitoring projectMonitoring)
    {
        return projectMonitoringMapper.updateProjectMonitoring(projectMonitoring);
    }

    /**
     * 批量删除监测预警值数据
     *
     * @param ids 需要删除的监测预警值数据主键
     * @return 结果
     */
    @Override
    public int deleteProjectMonitoringByIds(Long[] ids)
    {
        return projectMonitoringMapper.deleteProjectMonitoringByIds(ids);
    }

    /**
     * 删除监测预警值数据信息
     *
     * @param id 监测预警值数据主键
     * @return 结果
     */
    @Override
    public int deleteProjectMonitoringById(Long id)
    {
        return projectMonitoringMapper.deleteProjectMonitoringById(id);
    }
}
